import ExamComponent, { ProtocolComponent } from "@components/Apps/Exam/ExamComponent";
import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";

export default class MillimeterWaveRadarProtocolDataUpdateMessageHandler extends MessageHandler<ClientMessage.MillimeterWaveRadarProtocolDataUpdateMessage> {
    protected async RunAsync(message: ClientMessage.MillimeterWaveRadarProtocolDataUpdateMessage): Promise<void> {
        console.log('message',message);
        if(ExamComponent.Default.DeviceName.value = 'Calibration') {
            ProtocolComponent.Default.Receive(message.Datas);
        } else {
            return
        }
        
    }
}